package com.xbongbong.workflow.pojo.changerecord;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/9/29 18:52
 * @description： 记录修改数据的中间实体
 */
@Getter
@Setter
public class ChangeRecordMidPojo implements Serializable {

    private static final long serialVersionUID = 713017013881504112L;

    private JSONObject originalOldData;

    private JSONObject originalNewData;

    private Long formId;

    private String corpid;

    private Long dataId;

    private Integer businessType;

    private Integer saasMark;

    private Long workflowTaskId;

    private Long workflowNodeId;

    private UserVO userVO;

    public ChangeRecordMidPojo() {

    }

    public ChangeRecordMidPojo(JSONObject originalOldData, JSONObject originalNewData, Long formId, String corpid, Long dataId, Integer businessType, Integer saasMark, Long workflowTaskId, Long workflowNodeId, UserVO userVO) {
        this.originalOldData = originalOldData;
        this.originalNewData = originalNewData;
        this.formId = formId;
        this.corpid = corpid;
        this.dataId = dataId;
        this.businessType = businessType;
        this.saasMark = saasMark;
        this.workflowTaskId = workflowTaskId;
        this.workflowNodeId = workflowNodeId;
        this.userVO = userVO;
    }
}
